﻿using System.Runtime.InteropServices;

namespace Script
{
    public class ResponseInfo
    {
        public ResponseCode ResCode;

        public bool IsSuccess
        {
            get { return ResCode == ResponseCode.Success; }
        }
        public string Info;

        public static ResponseInfo CreateSuccess()
        {
            ResponseInfo ri = new ResponseInfo();
            ri.ResCode = ResponseCode.Success;
            return ri;
        }
    }

    public enum ResponseCode
    {
        Success = 0,
    }
}